<script setup lang='ts'>
const visible = defineModel<boolean>()
</script>

<template>
  <el-dialog
    v-model="visible"
    title="xxx"
    width="30%"
    :before-close="() => visible = false"
  >
    <div>
      xxxx
    </div>
    <template #footer>
      <span>
        <el-button @click=" visible = false">关闭</el-button>
        <el-button type="primary" @click="visible = false">确定</el-button>
      </span>
    </template>
  </el-dialog>
</template>

<style scoped lang='scss'>

</style>
